provider Prevent GET
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results-aggregates/ @utdk/sentry
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results-aggregates/ Retrieve aggregated test result metrics for repository, owner, and organization
Retrieves aggregated test result metrics for a given repository and owner.
Also accepts a query parameter to specify the time period for the metrics.
- organization_id_or_slug path required
- The ID or slug of the organization the resource belongs to.
- string
- owner path required
- The owner of the repository.
- string
- repository path required
- The name of the repository.
- string
- interval query
- The time interval to search for results by. Available fields are: - `INTERVAL_30_DAY` - `INTERVAL_7_DAY` - `INTERVAL_1_DAY`
- string
- branch query
- The branch to search for results by. If not specified, the default is all branches.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.retrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganization()